package com.jic.interaction;

import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.jic.interaction.JDVOP.mapper")
@EnableSwagger2
@EnableSwaggerBootstrapUI
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.jic.market.api","com.jic.weamop.api","com.jic.member.api"})
public class JicInteractionApplication {

	public static void main(String[] args) {
		SpringApplication.run(JicInteractionApplication.class, args);
}

	/**
	 * 时区设置
	 */
	@PostConstruct
	void started() {
		TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
	}
}
